package com.ylr.grpc.ExecutorBiz;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * <pre>
 *option java_multiple_files = true;
 * ExecutorBiz服务定义
 * </pre>
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.32.1)",
    comments = "Source: ExecutorBiz.proto")
public final class ExecutorBizGrpc {

  private ExecutorBizGrpc() {}

  public static final String SERVICE_NAME = "ExecutorBiz";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<ExecutorBizProto.HelloRequest,
      ExecutorBizProto.ResultReply> getBeatMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "beat",
      requestType = ExecutorBizProto.HelloRequest.class,
      responseType = ExecutorBizProto.ResultReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ExecutorBizProto.HelloRequest,
      ExecutorBizProto.ResultReply> getBeatMethod() {
    io.grpc.MethodDescriptor<ExecutorBizProto.HelloRequest, ExecutorBizProto.ResultReply> getBeatMethod;
    if ((getBeatMethod = ExecutorBizGrpc.getBeatMethod) == null) {
      synchronized (ExecutorBizGrpc.class) {
        if ((getBeatMethod = ExecutorBizGrpc.getBeatMethod) == null) {
          ExecutorBizGrpc.getBeatMethod = getBeatMethod =
              io.grpc.MethodDescriptor.<ExecutorBizProto.HelloRequest, ExecutorBizProto.ResultReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "beat"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.HelloRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.ResultReply.getDefaultInstance()))
              .setSchemaDescriptor(new ExecutorBizMethodDescriptorSupplier("beat"))
              .build();
        }
      }
    }
    return getBeatMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ExecutorBizProto.IdleBeatParamRequest,
      ExecutorBizProto.ResultReply> getIdleBeatMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "idleBeat",
      requestType = ExecutorBizProto.IdleBeatParamRequest.class,
      responseType = ExecutorBizProto.ResultReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ExecutorBizProto.IdleBeatParamRequest,
      ExecutorBizProto.ResultReply> getIdleBeatMethod() {
    io.grpc.MethodDescriptor<ExecutorBizProto.IdleBeatParamRequest, ExecutorBizProto.ResultReply> getIdleBeatMethod;
    if ((getIdleBeatMethod = ExecutorBizGrpc.getIdleBeatMethod) == null) {
      synchronized (ExecutorBizGrpc.class) {
        if ((getIdleBeatMethod = ExecutorBizGrpc.getIdleBeatMethod) == null) {
          ExecutorBizGrpc.getIdleBeatMethod = getIdleBeatMethod =
              io.grpc.MethodDescriptor.<ExecutorBizProto.IdleBeatParamRequest, ExecutorBizProto.ResultReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "idleBeat"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.IdleBeatParamRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.ResultReply.getDefaultInstance()))
              .setSchemaDescriptor(new ExecutorBizMethodDescriptorSupplier("idleBeat"))
              .build();
        }
      }
    }
    return getIdleBeatMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ExecutorBizProto.TriggerParamRequest,
      ExecutorBizProto.ResultReply> getRunMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "run",
      requestType = ExecutorBizProto.TriggerParamRequest.class,
      responseType = ExecutorBizProto.ResultReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ExecutorBizProto.TriggerParamRequest,
      ExecutorBizProto.ResultReply> getRunMethod() {
    io.grpc.MethodDescriptor<ExecutorBizProto.TriggerParamRequest, ExecutorBizProto.ResultReply> getRunMethod;
    if ((getRunMethod = ExecutorBizGrpc.getRunMethod) == null) {
      synchronized (ExecutorBizGrpc.class) {
        if ((getRunMethod = ExecutorBizGrpc.getRunMethod) == null) {
          ExecutorBizGrpc.getRunMethod = getRunMethod =
              io.grpc.MethodDescriptor.<ExecutorBizProto.TriggerParamRequest, ExecutorBizProto.ResultReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "run"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.TriggerParamRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.ResultReply.getDefaultInstance()))
              .setSchemaDescriptor(new ExecutorBizMethodDescriptorSupplier("run"))
              .build();
        }
      }
    }
    return getRunMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ExecutorBizProto.KillParamRequest,
      ExecutorBizProto.ResultReply> getKillMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "kill",
      requestType = ExecutorBizProto.KillParamRequest.class,
      responseType = ExecutorBizProto.ResultReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ExecutorBizProto.KillParamRequest,
      ExecutorBizProto.ResultReply> getKillMethod() {
    io.grpc.MethodDescriptor<ExecutorBizProto.KillParamRequest, ExecutorBizProto.ResultReply> getKillMethod;
    if ((getKillMethod = ExecutorBizGrpc.getKillMethod) == null) {
      synchronized (ExecutorBizGrpc.class) {
        if ((getKillMethod = ExecutorBizGrpc.getKillMethod) == null) {
          ExecutorBizGrpc.getKillMethod = getKillMethod =
              io.grpc.MethodDescriptor.<ExecutorBizProto.KillParamRequest, ExecutorBizProto.ResultReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "kill"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.KillParamRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.ResultReply.getDefaultInstance()))
              .setSchemaDescriptor(new ExecutorBizMethodDescriptorSupplier("kill"))
              .build();
        }
      }
    }
    return getKillMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ExecutorBizProto.LogParamParamRequest,
      ExecutorBizProto.ResultReply> getLogMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "log",
      requestType = ExecutorBizProto.LogParamParamRequest.class,
      responseType = ExecutorBizProto.ResultReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ExecutorBizProto.LogParamParamRequest,
      ExecutorBizProto.ResultReply> getLogMethod() {
    io.grpc.MethodDescriptor<ExecutorBizProto.LogParamParamRequest, ExecutorBizProto.ResultReply> getLogMethod;
    if ((getLogMethod = ExecutorBizGrpc.getLogMethod) == null) {
      synchronized (ExecutorBizGrpc.class) {
        if ((getLogMethod = ExecutorBizGrpc.getLogMethod) == null) {
          ExecutorBizGrpc.getLogMethod = getLogMethod =
              io.grpc.MethodDescriptor.<ExecutorBizProto.LogParamParamRequest, ExecutorBizProto.ResultReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "log"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.LogParamParamRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ExecutorBizProto.ResultReply.getDefaultInstance()))
              .setSchemaDescriptor(new ExecutorBizMethodDescriptorSupplier("log"))
              .build();
        }
      }
    }
    return getLogMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static ExecutorBizStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<ExecutorBizStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<ExecutorBizStub>() {
        @Override
        public ExecutorBizStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new ExecutorBizStub(channel, callOptions);
        }
      };
    return ExecutorBizStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static ExecutorBizBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<ExecutorBizBlockingStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<ExecutorBizBlockingStub>() {
        @Override
        public ExecutorBizBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new ExecutorBizBlockingStub(channel, callOptions);
        }
      };
    return ExecutorBizBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static ExecutorBizFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<ExecutorBizFutureStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<ExecutorBizFutureStub>() {
        @Override
        public ExecutorBizFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new ExecutorBizFutureStub(channel, callOptions);
        }
      };
    return ExecutorBizFutureStub.newStub(factory, channel);
  }

  /**
   * <pre>
   *option java_multiple_files = true;
   * ExecutorBiz服务定义
   * </pre>
   */
  public static abstract class ExecutorBizImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     * sayHello方法，格式为"方法名 请求参数 返回参数"
     * </pre>
     */
    public void beat(ExecutorBizProto.HelloRequest request,
                     io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnimplementedUnaryCall(getBeatMethod(), responseObserver);
    }

    /**
     * <pre>
     * 另一个sayHello方法
     * </pre>
     */
    public void idleBeat(ExecutorBizProto.IdleBeatParamRequest request,
                         io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnimplementedUnaryCall(getIdleBeatMethod(), responseObserver);
    }

    /**
     */
    public void run(ExecutorBizProto.TriggerParamRequest request,
                    io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnimplementedUnaryCall(getRunMethod(), responseObserver);
    }

    /**
     */
    public void kill(ExecutorBizProto.KillParamRequest request,
                     io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnimplementedUnaryCall(getKillMethod(), responseObserver);
    }

    /**
     */
    public void log(ExecutorBizProto.LogParamParamRequest request,
                    io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnimplementedUnaryCall(getLogMethod(), responseObserver);
    }

    @Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getBeatMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                ExecutorBizProto.HelloRequest,
                ExecutorBizProto.ResultReply>(
                  this, METHODID_BEAT)))
          .addMethod(
            getIdleBeatMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                ExecutorBizProto.IdleBeatParamRequest,
                ExecutorBizProto.ResultReply>(
                  this, METHODID_IDLE_BEAT)))
          .addMethod(
            getRunMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                ExecutorBizProto.TriggerParamRequest,
                ExecutorBizProto.ResultReply>(
                  this, METHODID_RUN)))
          .addMethod(
            getKillMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                ExecutorBizProto.KillParamRequest,
                ExecutorBizProto.ResultReply>(
                  this, METHODID_KILL)))
          .addMethod(
            getLogMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                ExecutorBizProto.LogParamParamRequest,
                ExecutorBizProto.ResultReply>(
                  this, METHODID_LOG)))
          .build();
    }
  }

  /**
   * <pre>
   *option java_multiple_files = true;
   * ExecutorBiz服务定义
   * </pre>
   */
  public static final class ExecutorBizStub extends io.grpc.stub.AbstractAsyncStub<ExecutorBizStub> {
    private ExecutorBizStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @Override
    protected ExecutorBizStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new ExecutorBizStub(channel, callOptions);
    }

    /**
     * <pre>
     * sayHello方法，格式为"方法名 请求参数 返回参数"
     * </pre>
     */
    public void beat(ExecutorBizProto.HelloRequest request,
                     io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getBeatMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * 另一个sayHello方法
     * </pre>
     */
    public void idleBeat(ExecutorBizProto.IdleBeatParamRequest request,
                         io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getIdleBeatMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void run(ExecutorBizProto.TriggerParamRequest request,
                    io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getRunMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void kill(ExecutorBizProto.KillParamRequest request,
                     io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getKillMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void log(ExecutorBizProto.LogParamParamRequest request,
                    io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getLogMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * <pre>
   *option java_multiple_files = true;
   * ExecutorBiz服务定义
   * </pre>
   */
  public static final class ExecutorBizBlockingStub extends io.grpc.stub.AbstractBlockingStub<ExecutorBizBlockingStub> {
    private ExecutorBizBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @Override
    protected ExecutorBizBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new ExecutorBizBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     * sayHello方法，格式为"方法名 请求参数 返回参数"
     * </pre>
     */
    public ExecutorBizProto.ResultReply beat(ExecutorBizProto.HelloRequest request) {
      return blockingUnaryCall(
          getChannel(), getBeatMethod(), getCallOptions(), request);
    }

    /**
     * <pre>
     * 另一个sayHello方法
     * </pre>
     */
    public ExecutorBizProto.ResultReply idleBeat(ExecutorBizProto.IdleBeatParamRequest request) {
      return blockingUnaryCall(
          getChannel(), getIdleBeatMethod(), getCallOptions(), request);
    }

    /**
     */
    public ExecutorBizProto.ResultReply run(ExecutorBizProto.TriggerParamRequest request) {
      return blockingUnaryCall(
          getChannel(), getRunMethod(), getCallOptions(), request);
    }

    /**
     */
    public ExecutorBizProto.ResultReply kill(ExecutorBizProto.KillParamRequest request) {
      return blockingUnaryCall(
          getChannel(), getKillMethod(), getCallOptions(), request);
    }

    /**
     */
    public ExecutorBizProto.ResultReply log(ExecutorBizProto.LogParamParamRequest request) {
      return blockingUnaryCall(
          getChannel(), getLogMethod(), getCallOptions(), request);
    }
  }

  /**
   * <pre>
   *option java_multiple_files = true;
   * ExecutorBiz服务定义
   * </pre>
   */
  public static final class ExecutorBizFutureStub extends io.grpc.stub.AbstractFutureStub<ExecutorBizFutureStub> {
    private ExecutorBizFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @Override
    protected ExecutorBizFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new ExecutorBizFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     * sayHello方法，格式为"方法名 请求参数 返回参数"
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<ExecutorBizProto.ResultReply> beat(
        ExecutorBizProto.HelloRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getBeatMethod(), getCallOptions()), request);
    }

    /**
     * <pre>
     * 另一个sayHello方法
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<ExecutorBizProto.ResultReply> idleBeat(
        ExecutorBizProto.IdleBeatParamRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getIdleBeatMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ExecutorBizProto.ResultReply> run(
        ExecutorBizProto.TriggerParamRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getRunMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ExecutorBizProto.ResultReply> kill(
        ExecutorBizProto.KillParamRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getKillMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ExecutorBizProto.ResultReply> log(
        ExecutorBizProto.LogParamParamRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getLogMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_BEAT = 0;
  private static final int METHODID_IDLE_BEAT = 1;
  private static final int METHODID_RUN = 2;
  private static final int METHODID_KILL = 3;
  private static final int METHODID_LOG = 4;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final ExecutorBizImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(ExecutorBizImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @Override
    @SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_BEAT:
          serviceImpl.beat((ExecutorBizProto.HelloRequest) request,
              (io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply>) responseObserver);
          break;
        case METHODID_IDLE_BEAT:
          serviceImpl.idleBeat((ExecutorBizProto.IdleBeatParamRequest) request,
              (io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply>) responseObserver);
          break;
        case METHODID_RUN:
          serviceImpl.run((ExecutorBizProto.TriggerParamRequest) request,
              (io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply>) responseObserver);
          break;
        case METHODID_KILL:
          serviceImpl.kill((ExecutorBizProto.KillParamRequest) request,
              (io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply>) responseObserver);
          break;
        case METHODID_LOG:
          serviceImpl.log((ExecutorBizProto.LogParamParamRequest) request,
              (io.grpc.stub.StreamObserver<ExecutorBizProto.ResultReply>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @Override
    @SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class ExecutorBizBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    ExecutorBizBaseDescriptorSupplier() {}

    @Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return ExecutorBizProto.getDescriptor();
    }

    @Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("ExecutorBiz");
    }
  }

  private static final class ExecutorBizFileDescriptorSupplier
      extends ExecutorBizBaseDescriptorSupplier {
    ExecutorBizFileDescriptorSupplier() {}
  }

  private static final class ExecutorBizMethodDescriptorSupplier
      extends ExecutorBizBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    ExecutorBizMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (ExecutorBizGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new ExecutorBizFileDescriptorSupplier())
              .addMethod(getBeatMethod())
              .addMethod(getIdleBeatMethod())
              .addMethod(getRunMethod())
              .addMethod(getKillMethod())
              .addMethod(getLogMethod())
              .build();
        }
      }
    }
    return result;
  }
}
